package com.java0430;

public class ElectricalAppliance {
    private int price;
    //重量
    private int weight;
    //颜色
    private String color;

    //运行
    public void run(){
        System.out.println("价格" + price + "重量" + weight + "颜色"+ color +"的电器在运行");
    }

    //停止
    public void stop(){
        System.out.println("价格" + price + "重量" + weight + "颜色"+ color +"的电器停止了");
    }

    public ElectricalAppliance(int price, int weight, String color) {
        this.price = price;
        this.weight = weight;
        this.color = color;
    }

    public ElectricalAppliance() {
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}
